//
//  MyPin.m
//  2.原生地图的使用
//
//  Created by liuyuecheng on 16/3/14.
//  Copyright (c) 2016年 liuyuecheng. All rights reserved.
//

#import "MyPin.h"

@implementation MyPin

- (instancetype)initWithCoordinate:(CLLocationCoordinate2D )cl2d AndTitle:(NSString *)title AndSubTitle:(NSString *)subTitle
{
    if (self = [super init])
    {
        _title = title;
        _subTitle = subTitle;
        _cl2d= cl2d;
    }
    return self;
}


//重写get方法
- (CLLocationCoordinate2D)coordinate
{
    return _cl2d;
}
- (NSString *)title
{
    return _title;
}
//这里是subtitle ,t是小写
- (NSString *)subtitle
{
    return _subTitle;
}
@end
